class CreateLeagueResults < ActiveRecord::Migration
  def self.up
    create_table :league_results do |t|
      t.integer :player_id
      t.integer :points,  :default => 0
      t.integer :played,  :default => 0
      t.integer :win,     :default => 0
      t.integer :loss,    :default => 0
      t.integer :league_id

      t.timestamps
    end
  end

  def self.down
    drop_table :league_results
  end
end
